import Vue from 'vue'
import Router from 'vue-router'
import Setting from './setting'
export default new Router({
  // mode: NODE_ENV === "prod" ? "history" : "",
  routes: [
    { path: '*', redirect: '/monitor' }, /*默认跳转路由*/
    Setting,
    // {
    //   path: "/overview",
    //   name: "overview",
    //   component: () => import('../components/Overview'),
    // },
    // {
    //   path: "/transport",
    //   name: "transport",
    //   component: () => import('../components/Transport'),
    // },
    // {
    //   path: "/maintain",
    //   name: "maintain",
    //   component: () => import('../components/Maintain'),
    // },
    // {
    //   path: "/consume",
    //   name: "consume",
    //   component: () => import('../components/Consume'),
    // },
    // {
    //   path: "/environment",
    //   name: "environment",
    //   component: () => import('../components/Environment'),
    // },
    {
      path: "/monitor",
      name: "monitor",
      component: () => import('../components/Monitor'),
    },
  ]
})

Vue.use(Router);